#include <sys/time.h>
#include <iostream>
using namespace std;
inline double microtime(){
    struct timeval tv;
    gettimeofday(&tv, nullptr);
    return (double)tv.tv_sec + (tv.tv_usec / (double) 1000000);
}

int main()
{
    double startTime = microtime();
    for(int i = 0; i < 100000000; i++){

    }
    cout << "耗时：" << microtime() - startTime << endl;
    return 0;
}
